package db

type User struct {
	_Node_   `mapstructure:",squash"`
	Name     string `mapstructure:"name" json:"name"`
	Mobile   string `mapstructure:"mobile" json:"mobile"`
	PassHash string `mapstructure:"passhash" json:"passhash"`
}

type UserWithRole struct {
	_BaseModel_ `mapstructure:",squash"`
	Name        string   `mapstructure:"name" json:"name"`
	Roles       []string `mapstructure:"roles" json:"roles"`
}

type PagedUserWithRole = Paged[UserWithRole]